import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

const state = {
  show: true
};

const getters = {
  show: state => {
    return state.show;
  }
};

const mutations = {
  updateShow: (state, value) => {
    state.show = value;
  }
};

export default new Vuex.Store({
  state,
  getters,
  mutations
})
